/*
 * @Description: 
 * @Author: zhangwei
 * @Date: 2023-01-31 14:27:25
 * @LastEditTime: 2023-02-08 10:49:29
 * @LastEditors: zhangwei
 */

const config: {
  base_url: string;
  result_code: number | string;
  default_headers: string;
  request_timeout: number;
} = {
  /**
   * api请求基础路径
   */
  base_url:
    import.meta.env.VITE_BASE_URL +
    import.meta.env.VITE_API_BASEPATH +
    import.meta.env.VITE_API_URL,
  /**
   * 接口成功返回状态码
   */
  result_code: 1,

  /**
   * 接口请求超时时间
   */
  request_timeout: 30000,

  /**
   * 默认接口请求类型
   * 可选值：application/x-www-form-urlencoded multipart/form-data
   */
  default_headers: "application/json",
};

export { config }
